package com.shzu.jwc.ty.bean;

import java.util.ArrayList;
import java.util.List;

public class PeExamAppointmentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PeExamAppointmentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPeExamAppointmentIdIsNull() {
            addCriterion("pe_exam_appointment_id is null");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentIdIsNotNull() {
            addCriterion("pe_exam_appointment_id is not null");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentIdEqualTo(Integer value) {
            addCriterion("pe_exam_appointment_id =", value, "peExamAppointmentId");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentIdNotEqualTo(Integer value) {
            addCriterion("pe_exam_appointment_id <>", value, "peExamAppointmentId");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentIdGreaterThan(Integer value) {
            addCriterion("pe_exam_appointment_id >", value, "peExamAppointmentId");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pe_exam_appointment_id >=", value, "peExamAppointmentId");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentIdLessThan(Integer value) {
            addCriterion("pe_exam_appointment_id <", value, "peExamAppointmentId");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentIdLessThanOrEqualTo(Integer value) {
            addCriterion("pe_exam_appointment_id <=", value, "peExamAppointmentId");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentIdIn(List<Integer> values) {
            addCriterion("pe_exam_appointment_id in", values, "peExamAppointmentId");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentIdNotIn(List<Integer> values) {
            addCriterion("pe_exam_appointment_id not in", values, "peExamAppointmentId");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentIdBetween(Integer value1, Integer value2) {
            addCriterion("pe_exam_appointment_id between", value1, value2, "peExamAppointmentId");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pe_exam_appointment_id not between", value1, value2, "peExamAppointmentId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdIsNull() {
            addCriterion("user_info_id is null");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdIsNotNull() {
            addCriterion("user_info_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdEqualTo(Integer value) {
            addCriterion("user_info_id =", value, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdNotEqualTo(Integer value) {
            addCriterion("user_info_id <>", value, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdGreaterThan(Integer value) {
            addCriterion("user_info_id >", value, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_info_id >=", value, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdLessThan(Integer value) {
            addCriterion("user_info_id <", value, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_info_id <=", value, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdIn(List<Integer> values) {
            addCriterion("user_info_id in", values, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdNotIn(List<Integer> values) {
            addCriterion("user_info_id not in", values, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdBetween(Integer value1, Integer value2) {
            addCriterion("user_info_id between", value1, value2, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_info_id not between", value1, value2, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationIdIsNull() {
            addCriterion("pe_examination_id is null");
            return (Criteria) this;
        }

        public Criteria andPeExaminationIdIsNotNull() {
            addCriterion("pe_examination_id is not null");
            return (Criteria) this;
        }

        public Criteria andPeExaminationIdEqualTo(Integer value) {
            addCriterion("pe_examination_id =", value, "peExaminationId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationIdNotEqualTo(Integer value) {
            addCriterion("pe_examination_id <>", value, "peExaminationId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationIdGreaterThan(Integer value) {
            addCriterion("pe_examination_id >", value, "peExaminationId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pe_examination_id >=", value, "peExaminationId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationIdLessThan(Integer value) {
            addCriterion("pe_examination_id <", value, "peExaminationId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationIdLessThanOrEqualTo(Integer value) {
            addCriterion("pe_examination_id <=", value, "peExaminationId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationIdIn(List<Integer> values) {
            addCriterion("pe_examination_id in", values, "peExaminationId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationIdNotIn(List<Integer> values) {
            addCriterion("pe_examination_id not in", values, "peExaminationId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationIdBetween(Integer value1, Integer value2) {
            addCriterion("pe_examination_id between", value1, value2, "peExaminationId");
            return (Criteria) this;
        }

        public Criteria andPeExaminationIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pe_examination_id not between", value1, value2, "peExaminationId");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentSuccessIsNull() {
            addCriterion("pe_exam_appointment_success is null");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentSuccessIsNotNull() {
            addCriterion("pe_exam_appointment_success is not null");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentSuccessEqualTo(Integer value) {
            addCriterion("pe_exam_appointment_success =", value, "peExamAppointmentSuccess");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentSuccessNotEqualTo(Integer value) {
            addCriterion("pe_exam_appointment_success <>", value, "peExamAppointmentSuccess");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentSuccessGreaterThan(Integer value) {
            addCriterion("pe_exam_appointment_success >", value, "peExamAppointmentSuccess");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentSuccessGreaterThanOrEqualTo(Integer value) {
            addCriterion("pe_exam_appointment_success >=", value, "peExamAppointmentSuccess");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentSuccessLessThan(Integer value) {
            addCriterion("pe_exam_appointment_success <", value, "peExamAppointmentSuccess");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentSuccessLessThanOrEqualTo(Integer value) {
            addCriterion("pe_exam_appointment_success <=", value, "peExamAppointmentSuccess");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentSuccessIn(List<Integer> values) {
            addCriterion("pe_exam_appointment_success in", values, "peExamAppointmentSuccess");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentSuccessNotIn(List<Integer> values) {
            addCriterion("pe_exam_appointment_success not in", values, "peExamAppointmentSuccess");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentSuccessBetween(Integer value1, Integer value2) {
            addCriterion("pe_exam_appointment_success between", value1, value2, "peExamAppointmentSuccess");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentSuccessNotBetween(Integer value1, Integer value2) {
            addCriterion("pe_exam_appointment_success not between", value1, value2, "peExamAppointmentSuccess");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentScoreIsNull() {
            addCriterion("pe_exam_appointment_score is null");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentScoreIsNotNull() {
            addCriterion("pe_exam_appointment_score is not null");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentScoreEqualTo(Double value) {
            addCriterion("pe_exam_appointment_score =", value, "peExamAppointmentScore");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentScoreNotEqualTo(Double value) {
            addCriterion("pe_exam_appointment_score <>", value, "peExamAppointmentScore");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentScoreGreaterThan(Double value) {
            addCriterion("pe_exam_appointment_score >", value, "peExamAppointmentScore");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentScoreGreaterThanOrEqualTo(Double value) {
            addCriterion("pe_exam_appointment_score >=", value, "peExamAppointmentScore");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentScoreLessThan(Double value) {
            addCriterion("pe_exam_appointment_score <", value, "peExamAppointmentScore");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentScoreLessThanOrEqualTo(Double value) {
            addCriterion("pe_exam_appointment_score <=", value, "peExamAppointmentScore");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentScoreIn(List<Double> values) {
            addCriterion("pe_exam_appointment_score in", values, "peExamAppointmentScore");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentScoreNotIn(List<Double> values) {
            addCriterion("pe_exam_appointment_score not in", values, "peExamAppointmentScore");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentScoreBetween(Double value1, Double value2) {
            addCriterion("pe_exam_appointment_score between", value1, value2, "peExamAppointmentScore");
            return (Criteria) this;
        }

        public Criteria andPeExamAppointmentScoreNotBetween(Double value1, Double value2) {
            addCriterion("pe_exam_appointment_score not between", value1, value2, "peExamAppointmentScore");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}